package pri.black.garden.biz;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import pri.black.garden.domain.GardenItem;
import pri.black.garden.service.IGardenItemService;

/**
 * gardenBiz业务层处理
 * 
 * @author black
 * @date 2025-01-21
 */
@Service
public class GardenItemBiz
{
    @Autowired
    private IGardenItemService gardenItemService;

    public IGardenItemService getService(){
        return gardenItemService;
    }

    /**
     * 新增GardenItem
     */
    public boolean save(GardenItem gardenItem){
        return gardenItemService.save(gardenItem);//看情况提取至controller中
    }

    /**
     * 更新GardenItem
     */
    public boolean update(GardenItem gardenItem){
        return gardenItemService.updateById(gardenItem);
    }
}
